 package com.lj.mcore.entity;


 import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;

 /**
  * 商品销售属性中具体选项
  * 如:销售属性是颜色，则此表存放 白色，红色，黑色，蓝色等具体选项。
  */
 @Entity
 @Table(name="shopping_goodsspecproperty")
 public class GoodsSpecProperty extends IdEntity
 {
   private int sequence;
 
   @Column(columnDefinition="LongText")
   private String value;
 
   @OneToOne(fetch= FetchType.LAZY, cascade={CascadeType.REMOVE})
   private Accessory specImage;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private GoodsSpecification spec;
 
   public int getSequence()
   {
     return this.sequence;
   }
 
   public void setSequence(int sequence) {
     this.sequence = sequence;
   }
 
   public String getValue() {
     return this.value;
   }
 
   public void setValue(String value) {
     this.value = value;
   }
 
   public Accessory getSpecImage() {
     return this.specImage;
   }
 
   public void setSpecImage(Accessory specImage) {
     this.specImage = specImage;
   }
 
   public GoodsSpecification getSpec() {
     return this.spec;
   }
 
   public void setSpec(GoodsSpecification spec) {
     this.spec = spec;
   }
 }



 
 